﻿@{
    ViewBag.Title = "Adding a Model Demo";
   
    @model List<MVC4CodeSamples.Areas.HTMLHelpers.Models.Employee> 
}
<h2>@ViewBag.Title</h2>
<h2>Objective:How to pass Data from controller to view</h2>
<table>
    <tr>
        <td>
            EmpID
        </td>
        <td>
            Emp Name
        </td>
        <td>
            Emp Salary
        </td>
    </tr>
    @foreach (MVC4CodeSamples.Areas.HTMLHelpers.Models.Employee item in Model)
    {
        <tr>
            <td>
            @item.EmpID
        </td>
        <td>
            @item.EmpName
        </td>
        <td>
            @item.EmpSalary
        </td>
        </tr> 
    }
</table>
